home *** CD-ROM | disk | FTP | other *** search
/ Champak 103 / Vol 103.iso / games / shark_at.swf / scripts / frame_6 / DoAction.as
Text File  |  2010-03-13  |  586b  |  28 lines

  1. function scroll()
  2. {
  3.    _root.level._x -= _root.mascot.speed;
  4.    _root.mascot._x -= _root.mascot.speed;
  5.    _root.shark._x -= 2;
  6. }
  7. s_boing = new Sound();
  8. s_boing.attachSound("boing");
  9. s_chomp = new Sound();
  10. s_chomp.attachSound("chomp");
  11. s_pow = new Sound();
  12. s_pow.attachSound("pow");
  13. s_item = new Sound();
  14. s_item.attachSound("item");
  15. s_sploosh = new Sound();
  16. s_sploosh.attachSound("sploosh");
  17. level_limit = -4700;
  18. rightlimit = 530;
  19. leftlimit = 20;
  20. shark_y = 308;
  21. mascot.air = true;
  22. level_length = 10;
  23. score = 0;
  24. enemies = 0;
  25. lives = 3;
  26. stop();
  27. stopAllSounds();
  28.